﻿///***************************************************************
/// 시  스  템 : Updms.Crd.Exe
/// 단위시스템 : CRD
/// 계      층 : Execute Layer (Relation Transaction)
/// 프로그램명 : Crd1013m_RT
/// 파  일  명 : Crd1013m_RT.cs
/// 설      명 : 할부사용내역
///***************************************************************
/// 수정ID 일자       이름     내용
///---------------------------------------------------------------
/// CH001  2008-07-21 송시명   최초 작성
///***************************************************************
using System.EnterpriseServices;
using System.Runtime.InteropServices;

using SMFramework.Data;


namespace Updms.Crd.Exe
{
	[ComVisible(true)]
	[Transaction(TransactionOption.Required)]
	[JustInTimeActivation(true)]
	public class Crd1013m_RT : Base.AppFramework.RuleBase
	{
		public Crd1013m_RT()
		{
		}

		#region InsertProcess
		
		[AutoComplete]
		public int InsertProcess(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_INSTALLMENT_BIZ _dac = new Dac.Crd_Dac_UPDMS_CRD_INSTALLMENT_BIZ())
			{
				return _dac.Insert(lo_dp);
			}
		}
		
		#endregion

		#region UpdateProcess
		
		[AutoComplete]
		public int UpdateProcess(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_INSTALLMENT_BIZ _dac = new Dac.Crd_Dac_UPDMS_CRD_INSTALLMENT_BIZ())
			{
				return _dac.Update(lo_dp);
			}
		}
		
		#endregion

		#region DeleteProcess
		
		[AutoComplete]
		public int DeleteProcess(string ls_xml)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_INSTALLMENT_BIZ _dac = new Dac.Crd_Dac_UPDMS_CRD_INSTALLMENT_BIZ())
			{
				return _dac.Delete(ls_xml);
			}
		}
		
		#endregion

		#region UpdateRepay

		[AutoComplete]
		public int UpdateRepay(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_INSTALLMENT_REPAY _dac = new Dac.Crd_Dac_UPDMS_CRD_INSTALLMENT_REPAY())
			{
				return _dac.Update(lo_dp);
			}
		}

		#endregion

		#region ConfirmProcess
		/// <summary>
		/// 할부상환리스트에서 확정처리
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public int ConfirmProcess(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_INSTALLMENT_REPAY _dac = new Dac.Crd_Dac_UPDMS_CRD_INSTALLMENT_REPAY())
			{
				return _dac.Confirm(lo_dp);
			}
		}

		#endregion

	}
}
